import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue()],
  server: {
    // host: '192.168.110.5', // 替换为你的局域网IP地址
    // host: "192.168.110.37",  //LWSW局域网
      host: 'localhost',  // Specify the host without the port
    port: 5175, 
    proxy: {
      '/admin': {
        target: 'http://localhost:3000/api',
        changeOrigin: true,
        rewrite: (path) => path.replace(/^\/admin/, '')
      }
    }
  }
})
